package com.yf.dxapp;

import org.apache.ibatis.annotations.Mapper;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * scanBasePackages 设置当前文件
 * @MapperScan 必须要  且要设置只扫描dao @Mapper 不然会报重复的错 或者会把别的接口当mapper了
 */
@SpringBootApplication(scanBasePackages = {"${yudao.info.base-package}.server", "${yudao.info.base-package}.module","${yf.info.base-package}"})
@MapperScan(basePackages = "${yf.info.base-package}",annotationClass = Mapper.class)
public class DxappServerApplication {

    public static void main(String[] args) {
        SpringApplication.run(DxappServerApplication.class, args);
    }

}
